Documents for PDF, .NET Edition Documentation
ConvertAll<TOutput> Method (StructList<T>)

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > StructList<T> Class : ConvertAll<TOutput> Method
The type of the elements of the target array.
A GrapeCity.Documents.Common.StructConverter`2 delegate that converts each element from one type to another type.
Converts the elements in the current StructList<T> to another type, and returns a list containing the converted elements.
Syntax
'Declaration
 
Public Function ConvertAll(Of TOutput As {New, Struct})( _
   ByVal converter As StructConverter(Of T,TOutput) _
) As StructList(Of TOutput)
public StructList<TOutput> ConvertAll<TOutput>( 
   StructConverter<T,TOutput> converter
)
where TOutput: new(), struct

Parameters

converter
A GrapeCity.Documents.Common.StructConverter`2 delegate that converts each element from one type to another type.

Type Parameters

TOutput
The type of the elements of the target array.

Return Value

A StructList<T> of the target type containing the converted elements from the current StructList<T>.
See Also

Reference

StructList<T> Class
StructList<T> Members